package gui;

import java.awt.Rectangle;

import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Sobre extends JDialog {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JLabel jLabelImagem = null;

	/**
	 * This is the default constructor
	 */
	public Sobre(JFrame owner, boolean modal) {
		super(owner, null, modal);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(295, 415);
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.setContentPane(getJContentPane());
		this.setTitle("Sobre o Gestock");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			// ImageIcon logo = new ImageIcon("sobre.png");
			ImageIcon logo = new ImageIcon(getClass().getResource(
					"/img/sobre.png"));
			jLabelImagem = new JLabel(logo);
			jLabelImagem.setBounds(new Rectangle(0, 0, 330, 400));
			jLabelImagem.setText("JLabel");
			jLabelImagem.addMouseListener(new java.awt.event.MouseAdapter() {
				public void mousePressed(java.awt.event.MouseEvent e) {
					dispose();
				}
			});
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(jLabelImagem, null);
		}
		return jContentPane;
	}

}
